//
//  ActionButton.m
//  ZActionSheetDemo
//
//  Created by HuaYingJiTuan on 15/12/16.
//  Copyright © 2015年 HuaYingJiTuan. All rights reserved.
//  图标按钮

#import "ActionButton.h"

@implementation ActionButton

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];

    if (self) {
        self.titleLabel.textAlignment = NSTextAlignmentCenter;
        self.titleLabel.font = [UIFont systemFontOfSize:17];
        //类型一图标下name颜色
        [self setTitleColor:[UIColor grayColor] forState:UIControlStateNormal];
        [self setTitleColor:[UIColor blackColor] forState:UIControlStateHighlighted];
    }
    return self;
}


//取消按钮的高亮状态
- (void)setHighlighted:(BOOL)highlighted{
}

//重写这个方法（调整标签标题的位置）
//- (CGRect)titleRectForContentRect:(CGRect)contentRect{
//}

//调整图片的位置
//- (CGRect)imageRectForContentRect:(CGRect)contentRect{
//}
@end
